<?php /* Smarty version 2.6.11, created on 2011-06-24 15:21:40
         compiled from classified_unaudit.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'classified_unaudit.php', 58, false),array('modifier', 'join', 'classified_unaudit.php', 60, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style/css/common.css" type="text/css" />
<LINK href="style/css/ui-lightness/jquery-ui-1.8.8.custom.css" type=text/css rel=stylesheet>
<title>管理区域</title>

<SCRIPT src="style/js/jquery-1.4.2.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/jquery-ui-1.8.6.custom.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/ckeditor/ckfinder/ckfinder.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/ckeditor/ckeditor.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/main.js" type=text/javascript></SCRIPT>

<link href="style/js/Pager.css" rel="stylesheet" type="text/css" />
<script src="style/js/jquery.pager.js" type="text/javascript"></script>
<script src="style/js/jquery.simpletip-1.3.1.pack.js" type="text/javascript"></script>
<script language="javascript">
$(document).ready(function(){
	$(".editlink").click(function(){
	$(".cbg").hover(function(){$(this).css("background-color","#F3F8F7")},function(){$(this).css("background-color","")});	
});
</script>
</head>

<body>
<div id="man_zone">
 <div style="clear:both;">
    <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
      <tr align="center" style="background-color:#F3F8F7">
        <td>&nbsp;</td>
        <td>ID</td>
        <td>标题</td>
        <td>状态</td>
        <td>发布者</td>
        <td>发布时间</td>
        <td>属性</td>
        <td>操作</td>
      </tr>
      <?php $_from = $this->_tpl_vars['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['val']):
?>
      <tr align="center" class="cbg">
        <td><input name="id[]" type="checkbox" value="<?php echo $this->_tpl_vars['val']['id']; ?>
" /></td>
        <td><?php echo $this->_tpl_vars['val']['id']; ?>
</td>
        <td align="left">
        	<a href="index.php?m=system&a=preview&id=<?php echo $this->_tpl_vars['val']['id']; ?>
&classid=<?php echo $this->_tpl_vars['val']['classid']; ?>
&wid=<?php echo $this->_tpl_vars['website']['wid']; ?>
" style="color:#F90" target="_blank">[预览]</a> 
            <a href="http://www.baidu.com/s?wd=<?php echo $this->_tpl_vars['val']['title']; ?>
&ie=utf-8" target="_blank"><img src="style/images/baidu.jpg" width="16" height="16" border="0" /></a>
            <a href="index.php?m=classified&a=edit&id=<?php echo $this->_tpl_vars['val']['id']; ?>
&wid=<?php echo $this->_tpl_vars['website']['wid']; ?>
" id="<?php echo $this->_tpl_vars['val']['id']; ?>
" class="article" ><?php echo $this->_tpl_vars['val']['title']; ?>
</a>
            
        </td>
       
        <td id="stat_<?php echo $this->_tpl_vars['val']['id']; ?>
">
        <?php if ($this->_tpl_vars['val']['audit']): ?>
        <a href="javascript:;" class="classifiedSet" style="color:green;" field="html" value="0" id="<?php echo $this->_tpl_vars['val']['id']; ?>
">已审核</a>
        <?php else: ?>
        <a href="javascript:;" style="color:#CCC;" class="classifiedSet" field="html" value="1" id="<?php echo $this->_tpl_vars['val']['id']; ?>
">未审核</a><?php endif; ?>
        </td>
        <td><?php echo $this->_tpl_vars['val']['writer']; ?>
</td>
        <td align="center"><?php echo ((is_array($_tmp=$this->_tpl_vars['val']['posttime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
        <td>
          <?php if (! empty ( $this->_tpl_vars['val']['flag'] )):  $this->assign('flag', ((is_array($_tmp=",")) ? $this->_run_mod_handler('join', true, $_tmp, $this->_tpl_vars['val']['flag']) : join($_tmp, $this->_tpl_vars['val']['flag'])));  endif; ?>
          <span><a href="#" style="<?php if (! empty ( $this->_tpl_vars['val']['flag'] ) && in_array ( 'h' , $this->_tpl_vars['val']['flag'] )): ?>color:green;<?php else: ?>color:#CCC;<?php endif; ?>" class="classifiedSet" field="h" id="<?php echo $this->_tpl_vars['val']['id']; ?>
" value="<?php echo $this->_tpl_vars['flag']; ?>
">头条</a></span>
          <span><a href="#" style="<?php if (! empty ( $this->_tpl_vars['val']['flag'] ) && in_array ( 'c' , $this->_tpl_vars['val']['flag'] )): ?>color:green;<?php else: ?>color:#CCC;<?php endif; ?>" class="classifiedSet" field="c" id="<?php echo $this->_tpl_vars['val']['id']; ?>
" value="<?php echo $this->_tpl_vars['flag']; ?>
">推荐</a></span>
          <span><a href="#" style="<?php if (! empty ( $this->_tpl_vars['val']['flag'] ) && in_array ( 'a' , $this->_tpl_vars['val']['flag'] )): ?>color:green;<?php else: ?>color:#CCC;<?php endif; ?>" class="classifiedSet" field="a" id="<?php echo $this->_tpl_vars['val']['id']; ?>
" value="<?php echo $this->_tpl_vars['flag']; ?>
">特荐</a></span>
        </td>
        <td align="center"><a href="index.php?m=classified&a=edit&id=<?php echo $this->_tpl_vars['val']['id']; ?>
&wid=<?php echo $this->_tpl_vars['website']['wid']; ?>
" id="<?php echo $this->_tpl_vars['val']['id']; ?>
" style="color:#F90" class="editlink" target="_blank">编辑</a> <a href="index.php?m=classified&amp;a=delete&amp;id=<?php echo $this->_tpl_vars['val']['id']; ?>
&ajax=1" class="delete" style="color:red;">删除</a></td>
      </tr>
      <?php endforeach; endif; unset($_from); ?>
      </table>
    <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
      <tr>
        <td align="center"></td>
        <td colspan="7" align="right">
        	<label><input name="" type="checkbox" value="" id="checkAll" />全选/反选</label>
            <input name="" type="button" value="生成" id="makePage" wid="<?php echo $this->_tpl_vars['website']['wid']; ?>
" classid="<?php echo $this->_tpl_vars['column']['classid']; ?>
" onclick="window.location.href='index.php?m=system&a=make&action=page&wid=<?php echo $this->_tpl_vars['website']['wid']; ?>
&classid=<?php echo $this->_tpl_vars['column']['classid']; ?>
&id='+getCheckBox()" />
        	<input name="" type="button" value="审核" id="articleAudit" />
            <input name="" type="button" value="删除" id="articleDelete" />
            <input name="" type="button" value="移动" />
            <input name="" type="button" value="复制" />
        </td>
        </tr>
        <tr>
        <td align="center">
			<span>总共:<?php echo $this->_tpl_vars['num']; ?>
条信息</span>
        </td>
        <td colspan="7" align="left" id="pager">
        
        </td>
        </tr>
    </table>
</div>
<div id="articleBox" style="display:none;">
</div>
<script type="text/javascript">
PageClick = function(pageclickednumber) {
	window.location = window.location.toString()+'&page='+pageclickednumber;
}
$("#pager").pager({ pagenumber: <?php echo $this->_tpl_vars['page']; ?>
, pagecount: <?php echo $this->_tpl_vars['pagecount']; ?>
, buttonClickCallback: PageClick });   
</script>
</body>
</html>